<?php

		

	
		require 'dbconnect.inc.php';

		
		$username=$_POST['postname'];
		$pswrd=$_POST['pass'];
		$result=mysqli_query($link,"select *from credential where emailid='$username' and password='$pswrd'") or die("could not");

		$count = mysqli_num_rows($result);

		mysqli_close($link);
		

		if($count==0)
		{
			
				echo $count;
			
		}
		else
		{	
			
			session_start();
			$_SESSION['emaild']=$username;
				
		}
		
	



	?>